namespace CSharpPro._1023;

public class Student
{
    public string Name { get; set; }
    public int Age { get; set; }
    public string Id { get; set; }
    public double Score { get; set; }
    
    // 构造函数
    public Student(string name, int age, string id, double score)
    {
        Name = name;
        Age = age;
        Id = id;
        Score = score;
    }
    
    // 显示学生信息
    public void ShowInfo()
    {
        Console.WriteLine($"姓名: {Name}, 年龄: {Age}, 学号: {Id}, 成绩: {Score}");
        Console.WriteLine($"是否及格: {Score >= 60}\n");
    }
}